package org.znxs.znxsojservice.services;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.znxs.model.model.vo.QuestionSubmitVO;

/**
 * 判题服务
 */
@FeignClient(name = "znxs-oj-judge", path = "/api/judge/inner")
public interface JudgeFeignClient {

    /**
     * 对指定id的题目进行判题
     *
     * @param questionSubmitId 题目id
     * @return
     */
    @PostMapping("/do")
    QuestionSubmitVO doJudge(@RequestParam("questionSubmitId") Long questionSubmitId);

}
